<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: lib/matrix.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">matrix.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>matrix functions  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;<a class="el" href="user__config_8h_source.html">user_config.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="matrix_8h_source.html">matrix.h</a>&quot;</code><br />
</div>
<p><a href="matrix_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a533fea51f46e772b14ec519a9f36aef9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a533fea51f46e772b14ec519a9f36aef9">TestSquare</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA)</td></tr>
<tr class="memdesc:a533fea51f46e772b14ec519a9f36aef9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Credits: <a href="https://www.cs.rochester.edu/~brown/Crypto/assts/projects/adj.html">https://www.cs.rochester.edu/~brown/Crypto/assts/projects/adj.html</a>.  <a href="#a533fea51f46e772b14ec519a9f36aef9">More...</a><br /></td></tr>
<tr class="separator:a533fea51f46e772b14ec519a9f36aef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5595f5b7a290aaeaf2daf98858bbdac2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a5595f5b7a290aaeaf2daf98858bbdac2">MatAlloc</a> (int rows, int cols)</td></tr>
<tr class="memdesc:a5595f5b7a290aaeaf2daf98858bbdac2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a matrix.  <a href="#a5595f5b7a290aaeaf2daf98858bbdac2">More...</a><br /></td></tr>
<tr class="separator:a5595f5b7a290aaeaf2daf98858bbdac2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae601ec2eed7dd95254dffd0e6ac03d23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#ae601ec2eed7dd95254dffd0e6ac03d23">MatAllocSQ</a> (int size)</td></tr>
<tr class="memdesc:ae601ec2eed7dd95254dffd0e6ac03d23"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allocate a matrix.  <a href="#ae601ec2eed7dd95254dffd0e6ac03d23">More...</a><br /></td></tr>
<tr class="separator:ae601ec2eed7dd95254dffd0e6ac03d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b9e8a544e7c2b04934737a30a19c6f6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a2b9e8a544e7c2b04934737a30a19c6f6">MatFree</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> matF)</td></tr>
<tr class="memdesc:a2b9e8a544e7c2b04934737a30a19c6f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free a matrix.  <a href="#a2b9e8a544e7c2b04934737a30a19c6f6">More...</a><br /></td></tr>
<tr class="separator:a2b9e8a544e7c2b04934737a30a19c6f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8c8055df2f89f410d49002690ede4cf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#ad8c8055df2f89f410d49002690ede4cf">MatLoad</a> (void *V, int rows, int cols)</td></tr>
<tr class="memdesc:ad8c8055df2f89f410d49002690ede4cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a matrix.  <a href="#ad8c8055df2f89f410d49002690ede4cf">More...</a><br /></td></tr>
<tr class="separator:ad8c8055df2f89f410d49002690ede4cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad554fcd60a6674448de06fbfc40d41d0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#ad554fcd60a6674448de06fbfc40d41d0">MatLoadSQ</a> (void *V, int size)</td></tr>
<tr class="memdesc:ad554fcd60a6674448de06fbfc40d41d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load a square matrix.  <a href="#ad554fcd60a6674448de06fbfc40d41d0">More...</a><br /></td></tr>
<tr class="separator:ad554fcd60a6674448de06fbfc40d41d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac950e582063e7d093f0384c5a35b6024"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#ac950e582063e7d093f0384c5a35b6024">MatPrint</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> matrix)</td></tr>
<tr class="memdesc:ac950e582063e7d093f0384c5a35b6024"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a matrix.  <a href="#ac950e582063e7d093f0384c5a35b6024">More...</a><br /></td></tr>
<tr class="separator:ac950e582063e7d093f0384c5a35b6024"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d91cec0176890e753207fa1b32ef505"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a5d91cec0176890e753207fa1b32ef505">DeleteRowCol</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA, int row, int col)</td></tr>
<tr class="memdesc:a5d91cec0176890e753207fa1b32ef505"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create smaller matrix by deleatting specified row and colume Used by Minor and Cofactor.  <a href="#a5d91cec0176890e753207fa1b32ef505">More...</a><br /></td></tr>
<tr class="separator:a5d91cec0176890e753207fa1b32ef505"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69e8069902ef085b6c19b391f3379492"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a69e8069902ef085b6c19b391f3379492">Transpose</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA)</td></tr>
<tr class="memdesc:a69e8069902ef085b6c19b391f3379492"><td class="mdescLeft">&#160;</td><td class="mdescRight">Transpose matrix.  <a href="#a69e8069902ef085b6c19b391f3379492">More...</a><br /></td></tr>
<tr class="separator:a69e8069902ef085b6c19b391f3379492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37d07d9a07bb5ed06e22ac723e7cd269"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a37d07d9a07bb5ed06e22ac723e7cd269">Minor</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA, int row, int col)</td></tr>
<tr class="memdesc:a37d07d9a07bb5ed06e22ac723e7cd269"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute determinate of the minor submatrix Minor submatrix has one less row and column as a result.  <a href="#a37d07d9a07bb5ed06e22ac723e7cd269">More...</a><br /></td></tr>
<tr class="separator:a37d07d9a07bb5ed06e22ac723e7cd269"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa96a1963cc354fe2a055eae3c846227c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#aa96a1963cc354fe2a055eae3c846227c">Cofactor</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA, int row, int col)</td></tr>
<tr class="memdesc:aa96a1963cc354fe2a055eae3c846227c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cofactor is determinate of minor submatrix * (-1)exp(row+col) Minor submatrix has one less row and column as a result.  <a href="#aa96a1963cc354fe2a055eae3c846227c">More...</a><br /></td></tr>
<tr class="separator:aa96a1963cc354fe2a055eae3c846227c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5140bc12eedbf802992531ca0ef3f0a8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a5140bc12eedbf802992531ca0ef3f0a8">Adjugate</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA)</td></tr>
<tr class="memdesc:a5140bc12eedbf802992531ca0ef3f0a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adjugate is transpose of cofactor matrix of A.  <a href="#a5140bc12eedbf802992531ca0ef3f0a8">More...</a><br /></td></tr>
<tr class="separator:a5140bc12eedbf802992531ca0ef3f0a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4eb7f5eff3cb27e283a27c7fbb53d6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#af4eb7f5eff3cb27e283a27c7fbb53d6a">Determinant</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA)</td></tr>
<tr class="memdesc:af4eb7f5eff3cb27e283a27c7fbb53d6a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determinant by recursion using Cofactors.  <a href="#af4eb7f5eff3cb27e283a27c7fbb53d6a">More...</a><br /></td></tr>
<tr class="separator:af4eb7f5eff3cb27e283a27c7fbb53d6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d4a273868c8ba43d51338aee9310b00"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a7d4a273868c8ba43d51338aee9310b00">Invert</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA)</td></tr>
<tr class="memdesc:a7d4a273868c8ba43d51338aee9310b00"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate Matrix Inverse.  <a href="#a7d4a273868c8ba43d51338aee9310b00">More...</a><br /></td></tr>
<tr class="separator:a7d4a273868c8ba43d51338aee9310b00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2217661f847795248eb975a64539488e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a2217661f847795248eb975a64539488e">PseudoInvert</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA)</td></tr>
<tr class="memdesc:a2217661f847795248eb975a64539488e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate Pseudo Matrix Inverse Used for least square fitting of non square matrix with excess solutions Pseudo Inverse matrix(A) = 1/(AT × A) × AT.  <a href="#a2217661f847795248eb975a64539488e">More...</a><br /></td></tr>
<tr class="separator:a2217661f847795248eb975a64539488e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5539a20ee0f152e7f1e38d36b3dfda20"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a5539a20ee0f152e7f1e38d36b3dfda20">MatMul</a> (<a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatA, <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatB)</td></tr>
<tr class="memdesc:a5539a20ee0f152e7f1e38d36b3dfda20"><td class="mdescLeft">&#160;</td><td class="mdescRight">Multiply two matrix.  <a href="#a5539a20ee0f152e7f1e38d36b3dfda20">More...</a><br /></td></tr>
<tr class="separator:a5539a20ee0f152e7f1e38d36b3dfda20"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad75902878173dfc33c227a75862c9c10"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#ad75902878173dfc33c227a75862c9c10">MatRead</a> (char *name)</td></tr>
<tr class="memdesc:ad75902878173dfc33c227a75862c9c10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a matrix.  <a href="#ad75902878173dfc33c227a75862c9c10">More...</a><br /></td></tr>
<tr class="separator:ad75902878173dfc33c227a75862c9c10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b1e8be5bc0c3a79a81e4254bbd8e6a5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="matrix_8c.html#a6b1e8be5bc0c3a79a81e4254bbd8e6a5">MatWrite</a> (char *name, <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatW)</td></tr>
<tr class="memdesc:a6b1e8be5bc0c3a79a81e4254bbd8e6a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write a matrix.  <a href="#a6b1e8be5bc0c3a79a81e4254bbd8e6a5">More...</a><br /></td></tr>
<tr class="separator:a6b1e8be5bc0c3a79a81e4254bbd8e6a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>matrix functions </p>
<dl class="section user"><dt>Copyright &copy; 2016 Mike Gore, GPL License</dt><dd></dd></dl>
<dl class="section user"><dt>You are free to use this code under the terms of GPL</dt><dd>please retain a copy of this notice in any code you use it in.</dd></dl>
<p>This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p>
<p>You should have received a copy of the GNU General Public License along with this program. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>

<p>Definition in file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a5140bc12eedbf802992531ca0ef3f0a8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> Adjugate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adjugate is transpose of cofactor matrix of A. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Adjugate_matrix">https://en.wikipedia.org/wiki/Adjugate_matrix</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Adjugate or A </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00325">325</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00399">Invert()</a>, and <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="aa96a1963cc354fe2a055eae3c846227c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> float Cofactor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Cofactor is determinate of minor submatrix * (-1)exp(row+col) Minor submatrix has one less row and column as a result. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Cofactor">https://en.wikipedia.org/wiki/Cofactor</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row</td><td>row to delete </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">col</td><td>col to delete </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Determinate * (-1)exp(row + col) </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00310">310</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00325">Adjugate()</a>, and <a class="el" href="matrix_8c_source.html#l00350">Determinant()</a>.</p>

</div>
</div>
<a class="anchor" id="a5d91cec0176890e753207fa1b32ef505"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> DeleteRowCol </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create smaller matrix by deleatting specified row and colume Used by Minor and Cofactor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A - row and col must be &gt;= 2 </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row</td><td>row to delete </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">col</td><td>col to delete </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>submatrix </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00212">212</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00291">Minor()</a>.</p>

</div>
</div>
<a class="anchor" id="af4eb7f5eff3cb27e283a27c7fbb53d6a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> float Determinant </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determinant by recursion using Cofactors. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Determinant">https://en.wikipedia.org/wiki/Determinant</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>square matrix A </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Determinant or 0 </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00350">350</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00399">Invert()</a>, and <a class="el" href="matrix_8c_source.html#l00291">Minor()</a>.</p>

</div>
</div>
<a class="anchor" id="a7d4a273868c8ba43d51338aee9310b00"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> Invert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculate Matrix Inverse. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Invertible_matrix">https://en.wikipedia.org/wiki/Invertible_matrix</a> Method used: Adjugate(MatA) / Det(MatA) </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>square matrix A input </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Inverse of MatA or error </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00399">399</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>, and <a class="el" href="matrix_8c_source.html#l00456">PseudoInvert()</a>.</p>

</div>
</div>
<a class="anchor" id="a5595f5b7a290aaeaf2daf98858bbdac2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatAlloc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocate a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of square matrix to allocate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>float ** </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00048">48</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00325">Adjugate()</a>, <a class="el" href="matrix_8c_source.html#l00212">DeleteRowCol()</a>, <a class="el" href="matrix_8c_source.html#l00105">MatAllocSQ()</a>, <a class="el" href="matrix_8c_source.html#l00152">MatLoad()</a>, <a class="el" href="matrix_8c_source.html#l00490">MatMul()</a>, <a class="el" href="matrix_8c_source.html#l00527">MatRead()</a>, and <a class="el" href="matrix_8c_source.html#l00263">Transpose()</a>.</p>

</div>
</div>
<a class="anchor" id="ae601ec2eed7dd95254dffd0e6ac03d23"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatAllocSQ </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allocate a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of square matrix to allocate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>float ** </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00105">105</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a2b9e8a544e7c2b04934737a30a19c6f6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void MatFree </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>matF</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">**Mat</td><td>Matrix to free </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00116">116</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00048">MatAlloc()</a>, <a class="el" href="matrix_8c_source.html#l00527">MatRead()</a>, <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>, <a class="el" href="matrix_8c_source.html#l00291">Minor()</a>, and <a class="el" href="matrix_8c_source.html#l00456">PseudoInvert()</a>.</p>

</div>
</div>
<a class="anchor" id="ad8c8055df2f89f410d49002690ede4cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatLoad </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>V</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Load a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*V</td><td>matrix data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of square matrix </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00152">152</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00176">MatLoadSQ()</a>, and <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="ad554fcd60a6674448de06fbfc40d41d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatLoadSQ </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>V</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Load a square matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*V</td><td>square matrix data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>size of square matrix </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00176">176</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="a5539a20ee0f152e7f1e38d36b3dfda20"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatMul </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatB</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Multiply two matrix. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Matrix_multiplication_algorithm">https://en.wikipedia.org/wiki/Matrix_multiplication_algorithm</a> C = AB, A is n × m matrix, B is m × p matrix C result n × p matrix (dimensions row size of A, column size of B) Cij = Sum(k=1 .. m) Aik * Bik </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">MatB</td><td>matrix B </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>MatA * MatB Result dimensions is (row size of A, column size of B) </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00490">490</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>, and <a class="el" href="matrix_8c_source.html#l00456">PseudoInvert()</a>.</p>

</div>
</div>
<a class="anchor" id="ac950e582063e7d093f0384c5a35b6024"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> void MatPrint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>matrix</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">Mat</td><td>Matrix to print </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00187">187</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00399">Invert()</a>, and <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="ad75902878173dfc33c227a75862c9c10"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> MatRead </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>matrix data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>mat_t matrix data Note: on error rows and cols = 0, data = NULL; </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00527">527</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00971">setup()</a>.</p>

</div>
</div>
<a class="anchor" id="a6b1e8be5bc0c3a79a81e4254bbd8e6a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int MatWrite </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatW</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write a matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*name</td><td>matrix data </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">MatW</td><td>Matrix </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status 1 = success, 0 = fail </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00605">605</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="user__main_8c_source.html#l00631">user_tests()</a>.</p>

</div>
</div>
<a class="anchor" id="a37d07d9a07bb5ed06e22ac723e7cd269"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> float Minor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>row</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>col</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Compute determinate of the minor submatrix Minor submatrix has one less row and column as a result. </p>
<dl class="section see"><dt>See also</dt><dd><a href="https://en.wikipedia.org/wiki/Minor_(linear_algebra)">https://en.wikipedia.org/wiki/Minor_(linear_algebra)</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">row</td><td>row to delete </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">col</td><td>col to delete </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Determinate </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00291">291</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00310">Cofactor()</a>.</p>

</div>
</div>
<a class="anchor" id="a2217661f847795248eb975a64539488e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> PseudoInvert </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculate Pseudo Matrix Inverse Used for least square fitting of non square matrix with excess solutions Pseudo Inverse matrix(A) = 1/(AT × A) × AT. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A input - does not have to be square </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Pseudo Inverse of MatA or error </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00456">456</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00605">MatWrite()</a>.</p>

</div>
</div>
<a class="anchor" id="a533fea51f46e772b14ec519a9f36aef9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> int TestSquare </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Credits: <a href="https://www.cs.rochester.edu/~brown/Crypto/assts/projects/adj.html">https://www.cs.rochester.edu/~brown/Crypto/assts/projects/adj.html</a>. </p>
<dl class="section author"><dt>Author</dt><dd>Paul Bourke 2002 Test is a matrix is square </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>1 if ssquare, 0 if not </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00037">37</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

</div>
</div>
<a class="anchor" id="a69e8069902ef085b6c19b391f3379492"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="earth2wireframe_8c.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> <a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a> Transpose </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="matrix_8h.html#aff180987da2be77c8864e8c906bf04e6">mat_t</a>&#160;</td>
          <td class="paramname"><em>MatA</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Transpose matrix. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">MatA</td><td>matrix A </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Transpose matrix </dd></dl>

<p>Definition at line <a class="el" href="matrix_8c_source.html#l00263">263</a> of file <a class="el" href="matrix_8c_source.html">matrix.c</a>.</p>

<p>Referenced by <a class="el" href="matrix_8c_source.html#l00456">PseudoInvert()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
